Skip to content

fix(bug-assess): recompile lock so github guard repos is 'all'#3036

Merged
mnriem merged 1 commit into
mainfrom
mnriem/fix-bug-assess-guard-repos
Jun 17, 2026
Merged

fix(bug-assess): recompile lock so github guard repos is 'all'#3036
mnriem merged 1 commit into
mainfrom
mnriem/fix-bug-assess-guard-repos

Conversation

@mnriem

@mnriem mnriem commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Problem

The bug-assess agentic workflow fails at the Start MCP Gateway step (run 27720902903, and the immediate re-run). The gateway container (gh-aw-mcpg:v0.3.25) exits during initialization with:

failed to register guard for server "github": invalid server guard policy:
allow-only.repos string must be 'all' or 'public'

Root cause

bug-assess.lock.yml declared compiler v0.79.8 but its github MCP allow-only guard policy contained:

"repos": "${GITHUB_REPOSITORY}"

which resolves to github/spec-kit. MCP Gateway v0.3.25 rejects a specific owner/repo in allow-only.repos — it only accepts the literal all or public.

Commit 9775c27 ("set min-integrity: none to allow reading external user issues") both added min-integrity: none and bumped the gateway v0.3.22 → v0.3.25, but the committed lock was stale: its guard policy still used the old ${GITHUB_REPOSITORY} form (and its manifest setup-action SHA was unresolved while the body already used the resolved SHA). The earlier successful run passed because it ran the prior lock (repos: all via the runtime lockdown path, gateway v0.3.22).

Fix

Recompiled bug-assess.md with the repo's pinned gh-aw v0.79.8, which deterministically emits "repos": "all" — the gateway-accepted default when min-integrity is set without an explicit repo scope — and reconciles the manifest setup-action SHA. min-integrity: none is preserved, so reading external-user issues still works.

  • gh aw compile bug-assess → 0 errors, 0 warnings
  • Only bug-assess.lock.yml and .github/aw/actions-lock.json change.

Validation

Re-apply the bug-assess label to a bug issue (or merge and re-trigger) to confirm the gateway starts.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

The committed lock file declared compiler v0.79.8 but contained a github
allow-only guard policy with `"repos": "${GITHUB_REPOSITORY}"`. MCP Gateway
v0.3.25 rejects repo-specific values ("allow-only.repos string must be 'all'
or 'public'"), so the agent job failed at "Start MCP Gateway":

  failed to register guard for server "github": invalid server guard policy:
  allow-only.repos string must be 'all' or 'public'

Recompiling bug-assess.md with gh-aw v0.79.8 deterministically emits
`"repos": "all"` (the gateway-accepted default when min-integrity is set
without an explicit repos scope), confirming the committed lock was stale.
This also reconciles the manifest setup-action SHA with the value already
used in the workflow body.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 17, 2026 21:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the bug-assess agentic workflow failing at the Start MCP Gateway step by updating the compiled workflow lock output to match MCP Gateway v0.3.25’s accepted GitHub guard policy shape.

Changes:

  • Recompiled bug-assess.lock.yml so the GitHub MCP server allow-only.repos guard value is "all" (instead of "${GITHUB_REPOSITORY}"), and updated the manifest action SHA to a resolved commit SHA.
  • Updated .github/aw/actions-lock.json to include the resolved SHA entry for github/gh-aw-actions/setup@v0.79.8.
Show a summary per file
File Description
.github/workflows/bug-assess.lock.yml Updates compiled lock output to use repos: "all" in the GitHub MCP guard policy and pins the setup action to a resolved SHA.
.github/aw/actions-lock.json Adds the corresponding resolved SHA lock entry for github/gh-aw-actions/setup@v0.79.8.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@mnriem mnriem merged commit ee8b358 into main Jun 17, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants